package com.wbl.tijianssm.controller;


import com.wbl.tijianssm.response.ApiRestResponse;
import com.wbl.tijianssm.service.CalendarService;
import com.wbl.tijianssm.vo.CalendarRequestDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/calender")
@RestController
public class CalendarController {
    @Autowired
    CalendarService calendarService;


    @PostMapping("/getCalendarInfo")
    public ApiRestResponse getClendar(@RequestBody CalendarRequestDto calendarRequestDto){//前端传了三个参数过来：year month  hpId
        return ApiRestResponse.success(calendarService.getCalendarList30(calendarRequestDto));
    }
}
